package com.qingke.oms.pojo;

public class Goods {
	private int id;
	private String code;
	private String name;
	private GoodsType goodsType;
	private Manufacturer manufacturer;
	private String description;
	public Goods(){
		
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public GoodsType getGoodsType() {
		return goodsType;
	}
	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}
	public Manufacturer getManufacturer() {
		return manufacturer;
	}
	public void setManufacturer(Manufacturer manufacturer) {
		this.manufacturer = manufacturer;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public String toString() {
		String descriptionStr=(description==null||description.trim().equals(""))?"":(", [description]:" + description);
		return "Goods [id]:" + id + ", [code]:" + code + ", [name]:" + name + ", [goodsType]:" + goodsType.getName() + ", [manufacturer]:"+ manufacturer.getName() + descriptionStr ;
	}
	
}
